package com.luhuiguo.cms.shared.rpc;

import java.util.List;

import com.luhuiguo.cms.shared.model.ArticleListModel;
import com.luhuiguo.gwt.dispatcher.shared.rpc.Result;

public class LoadArticlesResult implements Result {

    private static final long serialVersionUID = -6437476624539599015L;
    private List<ArticleListModel> articles;
    private int start;
    private int limit;
    private int totalCount;

    @SuppressWarnings("unused")
    private LoadArticlesResult() {

    }

    public LoadArticlesResult(List<ArticleListModel> articles, int start, int limit, int totalCount) {
        this.articles = articles;
        this.start = start;
        this.limit = limit;
        this.totalCount = totalCount;
    }

    public List<ArticleListModel> getArticles() {
        return articles;
    }

    public int getStart() {
        return start;
    }

    public int getLimit() {
        return limit;
    }

    public int getTotalCount() {
        return totalCount;
    }

}
